package com.daka.service.impl;

import com.daka.dao.ApproveScoreMapper;
import com.daka.entity.ApproveScore;
import com.daka.service.ApproveScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangx
 * CreateTime: 2016/9/27 16:15
 */

@Service("approveScoreService")
@SuppressWarnings("unused")
public class ApproveScoreServiceImpl implements ApproveScoreService {

    @Autowired
    private ApproveScoreMapper approveScoreMapper;

    @Override
    public int insert(ApproveScore po) {
        return approveScoreMapper.insert(po);
    }

    @Override
    public int update(ApproveScore po) {
        return approveScoreMapper.updateByPrimaryKeySelective(po);
    }

    @Override
    public ApproveScore selectById(Integer id) {
        return approveScoreMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ApproveScore> selectByStatement(ApproveScore record) {
        return approveScoreMapper.selectByStatement(record);
    }

    @Override
    public List<ApproveScore> selectByApprove(Integer id) {
        return approveScoreMapper.selectByApprove(id);
    }

    @Override
    public ApproveScore selectByOrg(ApproveScore approveScore) {
        return approveScoreMapper.selectByOrg(approveScore);
    }
}
